<?
$query="SELECT sd_news,sd_times FROM asombre_destin WHERE sd_id=1";
$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat);
$perso_tmp="-$userid-";
$bperso=substr_count($tmp[1],$perso_tmp);
IF ($bperso==0){
    $message="Vous n'avez pas acces a cette page";
   // require("include/message.php)" ;
	exit;
}
$query="SELECT times_id,times_sujet,times_texte,times_date,times_creator,times_type FROM sdtimes_article WHERE times_id=$article";
//0 = id 1 = sujet 2 origine 3 =date 4=lu
$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat); 
$texte=$tmp[2];
    $texte = htmlentities($texte);
    $texte=nl2br($texte);
$sujet=$tmp[1];
$date=$tmp[3];


?>
<div align="center"><a href="javascript:history.back()"><font color="#000000" size="4"><strong>Retour 
  en arri&egrave;re</strong></font></a><br>
</div>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000" >
  <tr> 
    <td  background="templates/default/FondS.jpg"><div align="center"></div>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
        <tr background="templates/default/FondC.jpg"> 
          <td width="99%" background="templates/default/FondS.jpg"> <div align="center"><strong><em><font color="#FFFF00" size="4">SD 
              times </font></em></strong></div></td>
        </tr>
        <tr background="templates/default/FondC.jpg"> 
          <td background="templates/default/FondC.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td background="templates/default/FondS.jpg"><? echo"$sujet  Ecris le  $date" ?></td>
              </tr>
              <tr>
                <td background="templates/default/Fond.jpg"><? echo"$texte" ?></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
